import 'package:flutter/material.dart';
import 'package:Smart/utils/screen_unit/gs_screen_util.dart';


class GsConfirmCancelWidget extends StatefulWidget {
  GsConfirmCancelWidget({Key key}) : super(key: key);

  @override
  _GsConfirmCancelWidgetState createState() => _GsConfirmCancelWidgetState();
}

class _GsConfirmCancelWidgetState extends State<GsConfirmCancelWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top:60.h),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          ButtonBar(
            children: [
              Container(
                width: 166.w,
                height: 48.h,
                child: RaisedButton(
                  elevation: 0,//值越大，阴影越重
                  color: Colors.white,
                  // padding: EdgeInsets.fromLTRB(20, 10, 20, 10),
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(50),
                      side: BorderSide(color: Color(0xffD1E000))),
                  child: Text(
                    '取消',
                    style: TextStyle(
                      color: Color(0xff141413),
                      fontSize: 18.sp,
                    ),
                  ),
                  onPressed: () {
                    Navigator.of(context).pop();
                  },
                ),
              ),
              SizedBox(
                width: 24.sp,
              ),
              Container(
                width: 166.sp,
                height: 48.sp,
                child: RaisedButton(
                  elevation: 0,//值越大，阴影越重
                  shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(50),
                  ),
                  // borderSide: BorderSide(color: Color(0xffD1E000)),
                  padding: EdgeInsets.fromLTRB(40, 10, 40, 10),
                  color: Color(0xffD7E600),
                  child: Text(
                    '确定',
                    style: TextStyle(
                      color: Color(0xff141413),
                      fontSize: 18.sp,
                    ),
                  ),
                  onPressed: () {

                  },
                ),
              )
            ],
          )
        ],
      ),
    );
  }
}